package com.lemon.boot.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 资源接口方法持久层对象，对应数据库
 *
 * @author Lemon
 * @since 2024-02-29
 */
@Getter
@Setter
@ToString
@ApiModel(value = "资源接口方法")
@TableName("sys_resource")
public class ResourcePO implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键ID
    @TableId(value = "id")
    @ApiModelProperty(value = "主键ID")
    private Long id;

    //名称
    @ApiModelProperty(value = "名称")
    private String name;

    //路径
    @ApiModelProperty(value = "路径")
    private String path;

    //标记字符，用户控制前端按钮的显示
    @ApiModelProperty(value = "标记字符，用户控制前端按钮的显示")
    private String signKey;

    //创建人
    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    //修改人
    @ApiModelProperty(value = "修改人")
    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;

    //修改时间
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    //状态 1正常 0异常
    @ApiModelProperty(value = "状态 1正常 0异常")
    @TableField(fill = FieldFill.INSERT)
    private Integer status;

    //删除状态 1是 0否
    @TableLogic
    @ApiModelProperty(value = "删除状态 1是 0否")
    private Integer deleted;


}
